//
//  ComplainViewController.h
//  OCPB
//
//  Created by Siroj Chongkolwanont on 6/30/56 BE.
//  Copyright (c) 2556 Siroj Chongkolwanont. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProjectComplain.h"
#import "PersonComplain.h"

@interface ComplainViewController : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource,UITextFieldDelegate,UIAlertViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,UITableViewDataSource,UITableViewDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UIActionSheetDelegate>
@property (strong, nonatomic) IBOutlet UIPickerView *suePicker;
@property (strong, nonatomic) IBOutlet UIPickerView *comLv0picker;
@property (strong, nonatomic) IBOutlet UIPickerView *comLv1Picker;
@property (strong, nonatomic) IBOutlet UIPickerView *causePicker;
@property (strong, nonatomic) IBOutlet UILabel *amoutLabel;
@property (strong, nonatomic) IBOutlet UITextField *amountText;
@property (strong, nonatomic) IBOutlet UIPickerView *peReqPicker;
@property (strong, nonatomic) IBOutlet UILabel *bathLabel;
- (IBAction)addFileClick:(id)sender;
- (void) setProjectComplain:(ProjectComplain*) project;
- (IBAction)addCamera:(id)sender;
- (void) addPersonComplain :(PersonComplain*) person;
@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet UILabel *projectComplainLabel;
@property (strong, nonatomic) IBOutlet UIPickerView *doctypesPicker;
@property (strong, nonatomic) IBOutlet UITableView *personComplainTable;
- (IBAction)createComplain:(id)sender;
@property (strong, nonatomic) IBOutlet UITextField *subjectTxt;
@property (strong, nonatomic) IBOutlet UITextField *detailTxt;
@property (strong, nonatomic) IBOutlet UITextField *docTypeText;
@property (strong, nonatomic) IBOutlet UIPickerView *docTypePicker;
@property (strong, nonatomic) IBOutlet UIButton *typeButton;
@property (strong, nonatomic) IBOutlet UIButton *causeButton;
@property (strong, nonatomic) IBOutlet UIButton *purposeButton;

@property (strong, nonatomic) IBOutlet UITextField *sueTxt;
@property (strong, nonatomic) IBOutlet UITextField *comLv0Txt;
@property (strong, nonatomic) IBOutlet UITextField *comLv1Txt;
@property (strong, nonatomic) IBOutlet UITextField *causeTxt;
@property (strong, nonatomic) IBOutlet UITextField *peReqTxt;
@property (strong, nonatomic) IBOutlet UIPickerView *topicPickerView;
@property (strong, nonatomic) IBOutlet UICollectionView *fileTable;
@property (strong, nonatomic) IBOutlet UITextView *detailTextView;
- (IBAction)delete_picture:(id)sender;
@property (strong, nonatomic) IBOutlet UITextField *projectText;
@property (strong, nonatomic) IBOutlet UITextField *personText;

@property (strong, nonatomic) IBOutlet UILabel *ProjectLabel;
@property (strong, nonatomic) IBOutlet UILabel *PersonLabel;
@property (strong, nonatomic) IBOutlet UIImageView *ProjectInd;
@property (strong, nonatomic) IBOutlet UIButton *ProjectButton;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *activityBar;
- (IBAction)selectList:(id)sender;
- (IBAction)selectDocType:(id)sender;

@property(assign) NSString* authenKey;
@property(assign) NSString* currentType;
@property(assign) NSString* currentCom0Type;


@end
